package com.imti.mall.product.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.imti.mall.model.pms.dto.PmsProductAttributeCategoryResult;
import com.imti.mall.model.pms.pojo.PmsProductAttributeCategory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface PmsProductAttributeCategoryMapper extends BaseMapper<PmsProductAttributeCategory> {
//public interface PmsProductAttributeCategoryMapper extends BaseMapper<PmsProductAttributeCategoryResult> {
    /**
     * 修改页面查找筛选属性
     * @return
     */
    @Select("select id,name,attribute_count,param_count from pms_product_attribute_category")
    List<PmsProductAttributeCategoryResult> findPmsProductAttributeCategory();


}
